package com.lcf.mytccaccount.controller;

import com.alibaba.fastjson.JSON;
import com.lcf.mytccaccount.config.PhoneProperties;
import com.lcf.mytccaccount.config.PhoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    private PhoneService phoneService;

    @GetMapping("/test1")
    public String test1() {
        PhoneProperties print = phoneService.print();
        return JSON.toJSONString(print);
    }
}
